import Request from '../common/request.js';
let request = new Request().http
export default {

	getSessionId: function(data) {
		return request('/app/user/getSessionId', data, 'POST');
	},
	loginByWx: function(data) {
		return request('/app/user/loginByWx', data, 'POST');
	},
	studentAdd: function(data) {
		return request('/app/student-info/add', data, 'POST');
	},
	getUserInfo: function(data) {
		return request('/app/user/getUserInfo', data, 'GET');
	},
	getStudent: function(data) {
		return request('/app/student-info/list', data, 'GET');
	},
	getClassByDateAndTeacher: function(data) {
		return request('/app/details/listByDate', data, 'GET');
	},
	selectTeacherList: function(data) {
		return request('/app/details/selectUserRole', data, 'GET');
	},
	getStudentAll: function(data) {
		return request('/app/student-info/listAll', data, 'GET');
	},
	checkInRecord: function(data) {
		return request('/app/checkInRecord', data, 'POST');
	},
	checkInRecordByClassId: function(data) {
		return request('/app/checkInRecord/listByClassId', data, 'get');
	},
	deleteCheckInRecord: function(data) {
		return request('/app/checkInRecord/delete', data, 'get');
	},
	getEvaluation: function(data) {
		return request('/app/classroom/evaluation/list', data, 'get');
	},
	getChectRecordDate: function(data) {
		return request('/app/checkInRecord/listByStudent', data, 'get');
	},
	selectClassroomWithEvaluation: function(data) {
		return request('/app/classroom/evaluation/selectClassroomWithEvaluation', data, 'GET');
	},
	getPictureBookByIds: function(data) {
		return request('/app/picture-books/getPictureBookByIds', data, 'GET');
	},
	getVocabularyByIds: function(data) {
		return request('/app/extend-vocabularies/getVocabularyByIds', data, 'GET');
	},
	studentUpdate: function(data) {
		return request('/app/student-info/update', data, 'put');
	},
	getShareImage: function(data) {
		return request('/app/classroom/evaluation/buildImageBySelectClassroomWithEvaluation', data, 'GET');
	},
	setPhoneNumberByOpenID: function(data) {
		return request('/app/user/getOpenIdAndPhoneNumber', data, 'POST');
	},
	practicePronounce: function(data) {
		return request('/app/common/common/uploadFilesByType', data, 'POST');
	},
	pointSubmit: function(data) {
		return request('/app/studentReviewCheckin/submit', data, 'POST');
	},
	listByStudentAndClass: function(data) {
		return request('/app/studentReviewCheckin/listByStudentAndClass', data, 'GET');
	},
	createOrder: function(data) {
		return request('/app/wx/pay/create', data, 'POST');
	},
	temporaryCallback: function(data) {
		return request('/app/wxpay/callback/temporaryCallback', data, 'POST');
	},
	getSchedual: function(data){
		return request('/app/details/listByStudentTime', data, 'GET');
	},
	bindStudent: function(data){
		return request('/app/student-info/student', data, 'POST');
	},
	getClaseById: function(data){
		return request('/app/details/getById', data, 'GET');
	},
	submitMeetingCode: function(data){
		return request('/app/details/updateMeetingNo', data, 'GET');
	},
}